// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
// import $ from "jquery"
// import 'bootstrap/dist/css/bootstrap.min.css'
// import 'bootstrap/dist/js/bootstrap.min'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import axios from 'axios'
// 导入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// 导入富文本编辑器样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import Quill from 'quill'
import toText from './assets/js/htmlChange.js'
Vue.prototype.$api = toText;
// import imageResize from 'quill-image-resize-module'
// Quill.register('modules/imageResize', imageResize)

// 将富文本编辑器，注册为全局可用组件
Vue.use(VueQuillEditor)

Vue.config.productionTip = false
Vue.use(ElementUI);
/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  beforeCreate() {
    Vue.prototype.$bus = this //安装全局事件总线
  },
  template: '<App/>'
})
